//
// Created by Administrator on 2021/11/16.
// 将完整的文件拷贝到一个单独的string对象中

#include <string>
#include <fstream>
#include <iostream>

using namespace std;

int main()
{
    ifstream in("FillString.cpp");
    string s, line;
    while(getline(in, line))
    {
        s += line + "\n";
    }
    cout << s;
}

